package chenbi.renthouse.mapper;

import chenbi.renthouse.controller.request.LoginRequest;
import chenbi.renthouse.controller.request.UserPageRequest;
import chenbi.renthouse.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
//    @Select("select * from user")
    List<User> list();


    List<User> listByCondition(UserPageRequest userPageRequest);

    void save(User user);

    User getById(Integer id);

    void updateById(User user);

    void deleteById(Integer id);

    User getByUsernameAndPassword(LoginRequest request);
























}
